#include "diphead6.h"
int main()
{
    char s[] = "dipsrc.bmp";
    BmpImage img(s);
    double src = img.calContrast();
    //双边滤波
    img.bilateralFilter(15, 50, 12.5);
    double bf = img.calContrast();
    img.rgba();
    //梯度锐化
    img.gradSharp(30);
    double gs = img.calContrast();
    img.rgba();
    //拉普拉斯锐化
    img.laplaceSharp();
    double ls = img.calContrast();
    img.rgba();
    printf("Constrast of Source image : %f\n", src);
    printf("Constrast of bilateralfilter image : %f\n", bf);
    printf("Constrast of gradsharp image : %f\n", gs);
    printf("Constrast of laplacesharp image : %f\n", ls);
    return 0;
}